package com.useeinfo.oa.modules.maintaining.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;
import com.useeinfo.oa.modules.base.entity.Enterprise;
import com.useeinfo.oa.modules.security.entity.SystemUser;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @auther: bin.liu
 * @Date: 2019/1/9 10:40
 * @Description: 维保单关注信息
 */
@Entity
@Table(name = "maintain_focus")
public class MaintainFocus extends SuperClassEntity<MaintainFocus> {

    @ManyToOne
    @JoinColumn(name = "enterprise_id")
    private Enterprise enterprise;

    /**
     * 关联工单
     */
    @ManyToOne
    @JoinColumn(name = "maintain_order_id")
    private MaintainOrder maintainOrder;

    @ManyToOne
    @JoinColumn(name = "system_user_id")
    private SystemUser systemUser;

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }

    public MaintainOrder getMaintainOrder() {
        return maintainOrder;
    }

    public void setMaintainOrder(MaintainOrder maintainOrder) {
        this.maintainOrder = maintainOrder;
    }

    public SystemUser getSystemUser() {
        return systemUser;
    }

    public void setSystemUser(SystemUser systemUser) {
        this.systemUser = systemUser;
    }
}
